package com.game.majiang.algorithm.niuniu;

import lombok.Getter;
import lombok.Setter;

@Getter
public enum carddata {
	NULL(0, "NULL", 0, 0,0,0,0), 
	hei1(1, "黑桃A", 4, 1,14,0,1), hei2(2, "黑桃2", 8, 1,2,0,2), hei3(3, "黑桃3", 12, 1,3,0,3), hei4(4, "黑桃4", 16, 1,4,0,4),hei5(5,"黑桃5", 20, 1,5,0,5),hei6(6,"黑桃6", 24, 1,6,0,6),hei7(7,"黑桃7", 28, 1,7,0,7),hei8(8,"黑桃8", 32, 1,8,0,8),hei9(9,"黑桃9", 36, 1,9,0,9),hei10(10,"黑桃10", 40, 1,10,0,10),
	hong1(11, "红桃A", 3, 2,14,1,1), hong2(12, "红桃2", 7, 2,2,1,2), hong3(13, "红桃3", 11, 2,3,1,3), hong4(14, "红桃4", 15, 2,4,1,4),hong5(15,"红桃5", 19, 2,5,1,5),hong6(16,"红桃6", 23, 2,6,1,6),hong7(17,"红桃7", 27, 2,7,1,7),hong8(18,"红桃8", 31, 2,8,1,8),hong9(19,"红桃9", 35, 2,9,1,9),hong10(20,"红桃10", 39, 2,10,1,10),
	mei1(21, "梅花A", 2, 3,14,0,1), mei2(22, "梅花2", 6, 3,2,0,2), mei3(23, "梅花3", 10, 3,3,0,3), mei4(24, "梅花4", 14, 3,4,0,4),mei5(25,"梅花5", 18, 3,5,0,5),mei6(26,"梅花6", 22, 3,6,0,6),mei7(27,"梅花7", 26, 3,7,0,7),mei8(28,"梅花8", 30, 3,8,0,8),mei9(29,"梅花9", 34, 3,9,0,9),mei10(30,"梅花10", 38, 3,10,0,10),
	fang1(31, "方块A", 1, 4,14,1,1), fang2(32, "方块2", 5, 4,2,1,2), fang3(33, "方块3", 9, 4,3,1,3), fang4(34, "方块4", 13, 4,4,1,4),fang5(35,"方块5", 17, 4,5,1,5),fang6(36,"方块6", 21, 4,6,1,6),fang7(37,"方块7", 25, 4,7,1,7),fang8(38,"方块8", 29, 4,8,1,8),fang9(39,"方块9", 33, 4,9,1,9),fang10(40,"方块10", 37, 4,10,1,10),
	xw(41, "小王", 53, 5,15,2,14),dw(42, "大王", 54, 5,16,2,15),
	heij(51, "黑桃J", 44, 1,11,0,11),heiq(52, "黑桃Q", 48, 1,12,0,12),heik(53, "黑桃K", 52, 1,13,0,13),
	hongj(61, "红桃J", 43, 2,11,1,11),hongq(62, "红桃Q", 47, 2,12,1,12),hongk(63, "红桃K", 51, 2,13,1,13),
	meij(71, "梅花J", 42, 3,11,0,11),meiq(72, "梅花Q", 46, 3,12,0,12),meik(73, "梅花K", 50, 3,13,0,13),
	fangj(81, "方块J", 41, 4,11,1,11),fangq(82, "方块Q", 45, 4,12,1,12),fangk(83, "方块K", 49, 4,13,1,13);
	

	@Setter
	private int _value;
	@Setter
	private String _name; 
	
	private int _strong;
	
	private int _type;
	private int zhajinhua_dianshu;
	private int _heihong;
	private int _dianshu;
	private carddata(int value, String name, int strong, int type, int zhajinhua, int heihong, int dianshu)
    {
         _value = value;
         _name = name;   
         _strong = strong;
         _type = type;
         zhajinhua_dianshu = zhajinhua;
         _heihong = heihong;
         _dianshu = dianshu;
    }
	
	public int getdianshu()
	{
		return _dianshu;
	}
	
	public int getpoint()
	{
		if(_value > 40)
		{
			return 10;
		}
		else
		{
			if(_value%10==0){
				return 10;
			}else{
				return _value%10;
			}
			
		}
	}
	
	@Override
	public String toString() {
		return _name;
	}
}